package cn.fzm.demo01;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author Dremeue
 * @create 2019-09-25 1:19
 **/
@Component(value = "user")
@Scope(value = "prototype")
public class User {

    private String name;

    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void add() {
        System.out.println("user add...");
    }
}
